using Mathmall.Administration.common;
using Mathmall.Administration.Models;
using Mathmall.Administration.Vo;

namespace Mathmall.Administration.Service;

public interface IMenuService
{
    /// <summary>
    /// 添加菜单
    /// </summary>
    /// <param name="menuVo"></param>
    /// <returns></returns>
    Task<int> AddMenu(MenuVo menuVo);

    /// <summary>
    /// 查询全部菜单数据，以树形结构返回
    /// </summary>
    /// <returns></returns>
    Task<List<MenuVo>> GetMenus();

    /// <summary>
    /// 更新菜单
    /// </summary>
    /// <param name="menuVo"></param>
    /// <returns></returns>
    Task<int> UpdateMenu(MenuVo menuVo);

    /// <summary>
    /// 删除菜单
    /// </summary>
    /// <param name="menuID"></param>
    /// <returns></returns>
    Task<int> DeleteMenu(int menuID);
}